package com.cloudkinto.service.stock.exportVo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.cloudkinto.enumType.stock.StockOrderTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ProductFlowingOmpExportVo {

    @Excel(name = "记录时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Excel(name = "sku")
    private String sku;
    @Excel(name = "spu")
    private String spu;
    @Excel(name = "产品名称")
    private String productName;
    @Excel(name = "仓库")
    private String whName;
    @Excel(name = "客户")
    private String companyCode;
    @Excel(name = "批次号")
    private String innerBatchNo;
    @ApiModelProperty("库位")
    private String cellNo;
    @Excel(name = "库存属性", replace = {"正品_0", "次品_1"})
    private int stockAttribute;
    @Excel(name = "变化量")
    private int bookQuantity;
    @Excel(name = "剩余批次库存")
    private Integer closeBatchQty;
    @Excel(name = "剩余总库存")
    private Integer closeQty;
    @Excel(name = "单据类型")
    private String orderType;
    @Excel(name = "关联单据号")
    private String noteNo;
    @Excel(name = "处理人")
    private String createByName;
    @Excel(name = "备注")
    private String tips;
    public String getOrderType() {
        return StockOrderTypeEnum.getDesc(orderType);
    }
}
